<%@ page import="java.util.List" %>
<html>
	<head></head>
		<title>Your Images</title>
	<body>
		<h1>Your Images</h1>
		<b>Click an image to view transformations</b><br>
		
		
		<!--form action='LoginWithJsp'-->
		<!--intput type="hidden" name="login" -->
		<button type="button" name="back" onclick="history.back()">back</button><br>

		<hr>
		
		<% List<String> images = (List)request.getAttribute("userimages");

		for( String key : images ){
			
		%>
		<br><%=key%>
		<form action="ViewImageTransforms" method="Get">
			<input type="hidden" name="key1" value ="<%=key%>"><br />
			<input type="image" src="https://s3.amazonaws.com/ece1779kfc/<%=key%>"
				 alt="Submit" width="200" height="200">
		</form>
		<%
		}
		%>	
	
		<!--
	
		<br> Username is: 
		<%= this.getServletContext().getAttribute("login")%>
		<br> Password is:
		<%= this.getServletContext().getAttribute("password")%>
		<br> UserId is:
		<%= this.getServletContext().getAttribute("userId")%>
		
		-->
		
	</body>
</html>